
#ifndef _DEFINES_H_
#define _DEFINES_H_

#define MAX_FPS 60
#define TIME_STEP (1000.0/MAX_FPS)

#define START_BALL_X		50
#define START_BALL_Y		500-32

#define SCREEN_WIDTH		960
#define SCREEN_HEIGHT		640
#define RATIO_SCREEN		(float32(SCREEN_WIDTH) / float32(SCREEN_HEIGHT))
#define GROUND_HEIGHT		500
#define TALL_BY_METERS		6
#define HTALL_BY_METERS		TALL_BY_METERS/2
#define MAX_GAME_OBJECT 1024

#define Misc_FixedPointMin											-3.402823466e+38F
#define Misc_FixedPointMax											3.402823466e+38F

#define USE_UPDATE_RECORD_VERSION

#define 	 SPRITE_TEXT_WHITE 	 45
#define	TEXT_WHITE_FRAME_SYMBOLS	 0
#define	TEXT_WHITE_FRAME_NUM	 20
#define	TEXT_WHITE_FRAME_UPPERCASE	 30
#define	TEXT_WHITE_FRAME_LOWERCASE	 56
#define	TEXT_WHITE_FRAME_EXTENDCASE	 82

#define 	 SPRITE_FONT01 	 40
#define	FONT01_FRAME_SYMBOLS	 0
#define	FONT01_FRAME_NUM	 20
#define	FONT01_FRAME_UPPERCASE	 30
#define	FONT01_FRAME_LOWERCASE	 56
#define	FONT01_FRAME_CANCLE	 82
#define	FONT01_FRAME_OK	 83
#define	FONT01_FRAME_EXTENDCASE	 84
#define 	 SPRITE_FONT02 	 41
#define	FONT02_FRAME_SYMBOLS	 0
#define	FONT02_FRAME_NUM	 20
#define	FONT02_FRAME_UPPERCASE	 30
#define	FONT02_FRAME_LOWERCASE	 56
#define	FONT02_FRAME_CANCLE	 82
#define	FONT02_FRAME_OK	 83
#define	FONT02_FRAME_EXTENDCASE	 84
#define 	 SPRITE_FONT3 	 42
#define	FONT3_FRAME_SYMBOL	 0
#define	FONT3_FRAME_UPPERCASE	 20
#define	FONT3_FRAME_LOWERCASE	 46
#define	FONT3_FRAME_NUM	 72
#define	FONT3_FRAME_EXTENDCASE	 82
#define	FONT3_FRAME_ARROW	 125

#define MStoSEC(a)		((float)(a) / 1000.0f)
#endif // _DEFINES_H_